﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Policlinica
{
    public class Doctor : BusinessObjectBase
    {
        private string _specialisation;
        private string _category;
        private Cabinet _Cabinet;
        private Employee _Employee;
        private Schedule _Schedule;      

        public Doctor()
        {
            this._Cabinet = default(Cabinet);
            this._Employee = default(Employee);
            this._Schedule = default(Schedule);
        }

        public Doctor(int id, bool isDeleted, string specialisation, string category, Cabinet cabinet,
            Employee employee, Schedule schedule):base(id, isDeleted)
        {
            _specialisation = specialisation;
            _category = category;
            _Cabinet = cabinet;
            _Employee = employee;
            _Schedule = schedule;
        }

        public Doctor(string specialisation, string category, Cabinet cabinet, Employee employee, Schedule schedule)
        {
            _specialisation = specialisation;
            _category = category;
            _Cabinet = cabinet;
            _Employee = employee;
            _Schedule = schedule;
        }

        public string Specialisation
        {
            get
            {
                return this._specialisation;
            }
            set
            {
                if ((this._specialisation != value))
                {
                    this._specialisation = value;
                }
            }
        }

        public string Category
        {
            get
            {
                return this._category;
            }
            set
            {
                if ((this._category != value))
                {
                    this._category = value;
                }
            }
        }

        public Cabinet Cabinet
        {
            get
            {
                return this._Cabinet;
            }
            set
            {
                Cabinet previousValue = this._Cabinet;
                if (previousValue != value)
                {
                    this._Cabinet = value;
                }
            }
        }

        public Employee Employee
        {
            get
            {
                return this._Employee;
            }
            set
            {
                Employee previousValue = this._Employee;
                if (previousValue != value)
                {
                    this._Employee = value;
                }
            }
        }

        public Schedule Schedule
        {
            get
            {
                return this._Schedule;
            }
            set
            {
                Schedule previousValue = this._Schedule;
                if (previousValue != value)
                {
                    this._Schedule = value;
                }
            }
        }

    }
	
}
